﻿using FMStudio.Domain.Properties;
using System.ComponentModel.DataAnnotations;
using System.Data.Objects.DataClasses;

namespace FMStudio.Domain
{
    public interface IPayTypeCategory
    {
        [Required(ErrorMessageResourceName = "PayTypeCategoryNameMandatory", ErrorMessageResourceType = typeof(Resources))]
        [StringLength(100, ErrorMessageResourceName = "PayTypeCategoryNameMaxLength", ErrorMessageResourceType = typeof(Resources))]
        string Name { get; set; }

        [Required(ErrorMessageResourceName = "CurrencyMandatory", ErrorMessageResourceType = typeof(Resources))]
        ICurrency Currency { get; set; }

        EntityCollection<IPayType> PayTypes { get; }
    }
}
